package api.istsoft.ru.dal.Auth;

import android.content.SharedPreferences.Editor;


public class UserData {
	
	private String userName;
	private String email;
	private Profile profile;
	
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public Profile getProfile() {
		return profile;
	}
	public void setProfile(Profile profile) {
		this.profile = profile;
	}
	
	public void store(Editor editor){
		editor.putString("UserData_UserName", userName);
		editor.putString("UserData_Email", email);
		profile.store(editor);
	}

}

//"CreationDate": "/Date(1366275750000)/",
//"Email": "dady-djo@mail.ru",
//"IsLockedOut": false,
//"IsOnline": true,
//"LastActivityDate": "/Date(1366276407603)/",
//"LastLockoutDate": "/Date(-6816268800000)/",
//"LastLoginDate": "/Date(1366276407603)/",
//"UserName": "dadydjo",
//"Profile": {
//    "__type": "api.istsoft.ru.dal.Auth.Profile",
//}
